import fetch from 'common/src/utils/fetch'

// 导出志愿排序列表
export function exportInterResultRank(data) {
    return fetch({
        url: '/api/majorservice/interResultRank/admissionExport',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    });
}

// 查询成绩详情
export function getInterResultList(gradeId, studentId) {
  return fetch({
    url: '/api/majorservice/interResultRank/interResultDetail',
    method: 'post',
    params: { gradeId: gradeId, studentId: studentId },
    headers: { 'Content-Type': 'application/json' },
  });
}

// 联动根据年级查询大类
export function findClassPower(data) {
    return fetch({
        url: '/api/welcomeservice/tutorSchool/major/' + data,
        method: 'get',
        headers: { 'Content-Type': 'application/json' },
        data
    });
}
// 联动根据年级大类查询专业
export function getSubjectByGradeAndMajor(gradeId, majorCode) {
    return fetch({
        url: 'api/commonservice/campusProfession/findProfessionByBigProfession?grade=' + gradeId + '&bigProfessionCode=' + majorCode,
        method: 'get',
        headers: { 'Content-Type': 'application/json' },
    });
}

export function getReportStatus(key) {
    return fetch({
        url: `/api/majorservice/common/exportExcelResult/${key}`,
        method: 'get'
    });
}

